<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<?php
	//Modify below code to change paths to images used in jqueryslidemenu
	Yii::app()->clientScript->registerScript('md5', "
		var downImagePath = 'images/down.gif';
		var rightImagePath = 'images/right.gif';
	");
	$jqueryslidemenupath = Yii::app()->assetManager->publish(Yii::app()->basePath.'/scripts/jqueryslidemenu/');
	
	//Register jQuery, JS and CSS files
	Yii::app()->clientScript->registerCoreScript('jquery');
	Yii::app()->clientScript->registerCssFile($jqueryslidemenupath.'/jqueryslidemenu.css');	
	Yii::app()->clientScript->registerScriptFile($jqueryslidemenupath.'/jqueryslidemenu.js');
?>
<div class="container" id="page">

		<div id="logo">
		  	<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/medco_logo.gif" width="450" align="middle" height="50" border="0" alt=""></img>
		</div>
	<!-- header -->

	<div id="myslidemenu" class="jqueryslidemenu">
	<!-- <div id="mainmenu"> -->
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array
			(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'Patients', 'url'=>array('#'), 'items'=>array
				(
					array('label'=>'Administration', 'url'=>array('#'), 'items'=>array
						(
							array('label'=>'Search Patient', 'url'=>array('/patients/admin')),
							array('label'=>'Create Patient', 'url'=>array('/patients/create')),
						)),
					array('label'=>'Appointments', 'url'=>array('#'), 'items'=>array
						(
							array('label'=>'Search Appointment', 'url'=>array('/appointments/search')),
							array('label'=>'Create Appointment', 'url'=>array('/appointments/create')),
						)),
					array('label'=>'Encounters', 'url'=>array('#'), 'items'=>array
					(
						array('label'=>'Search Encounters', 'url'=>array('/encounters/search')),
						array('label'=>'Create Encounters', 'url'=>array('/encounters/create')),
					)),
					array('label'=>'Medications', 'url'=>array('#') , 'items'=>array
						(
							array('label'=>'Search Medications', 'url'=>array('/medications/search')),
							array('label'=>'Create Medications', 'url'=>array('/medications/create')),
						)),
					array('label'=>'Vaccinations', 'url'=>array('#'), 'items'=>array
						(
							array('label'=>'Search Vaccinations', 'url'=>array('/vaccinations/search')),
							array('label'=>'Create Vaccinations', 'url'=>array('/vaccinations/create')),
						)),
					array('label'=>'Allergies', 'url'=>array('#'), 'items'=>array
						(
							array('label'=>'Search Allergies', 'url'=>array('/allergies/search')),
							array('label'=>'Create Allergies', 'url'=>array('/allergies/create')),
						)),
				)),		
				
				/*array('label'=>'Office Admin', 'url'=>array('#'), 'items'=>array
				(
					array('label'=>'SubLevel 1 - Home', 'url'=>array('/site/index')),
					array('label'=>'SubLevel 1 - About', 'url'=>array('/site/page', 'view'=>'about')),
					array('label'=>'SubLevel 1 - Contact', 'url'=>array('/site/contact'), 'items'=>array
					(
						array('label'=>'SubLevel 2 - Home', 'url'=>array('/site/index')),
						array('label'=>'SubLevel 2 - About', 'url'=>array('/site/page', 'view'=>'about')),
						array('label'=>'SubLevel 2 - Contact', 'url'=>array('/site/contact'), 'items'=>array
						(
							array('label'=>'SubLevel 3 - Home', 'url'=>array('/site/index')),
							array('label'=>'SubLevel 3 - About', 'url'=>array('/site/page', 'view'=>'about')),
							array('label'=>'SubLevel 3 - Contact', 'url'=>array('/site/contact')),
						)), 
					)),				
				)),*/		
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
		<br style="clear: left" />
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>

	<?php echo $content; ?>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by Solutions Inc.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>